﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using NightWolf.Sonar;

namespace Nuzzle.Database.Models
{
    [SonarTable("maps")]
    public class MapModel : SonarRecord
    {
        public MapModel()
        {
            Engine = new Managers.MapManager.MapEngine(this);
        }

        [SonarField("ID", true)]
        public int ID;

        [SonarField("SubareaID")]
        public int SubareaID;

        [SonarField("MapType")]
        public int MapType;

        [SonarField("TopMap")]
        public int TopMap;

        [SonarField("BottomMap")]
        public int BottomMap;

        [SonarField("LeftMap")]
        public int LeftMap;

        [SonarField("RightMap")]
        public int RightMap;

        [SonarField("Cells")]
        public string Cells;

        public Managers.MapManager.MapEngine Engine { get; set; }
    }
}
